package connection

import "net"

type Connection struct {
	id       uint64
	conn     net.Conn
	username string
	password string
	topic    string
	address  string
}

func (c *Connection) Read(p []byte) (n int, err error) {
	//TODO implement me
	panic("implement me")
}

func NewConn(conn net.Conn) *Connection {
	return &Connection{
		conn: conn,
	}
}

func (c *Connection) Close() error {
	return c.conn.Close()
}

func (c *Connection) Write(bytes []byte) (int, error) {
	return 0, nil
}

func (c *Connection) GetClientId() int32 {
	return 0
}
